package com.supreme.commonmybatis.entity.primary;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName biz_group
 */
@Data
@Accessors(chain = true)
@TableName(value ="biz_group")
public class MBGroup implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long groupId;

    /**
     * 
     */
    private String groupCode;

    /**
     * 
     */
    private String groupName;

    /**
     * 
     */
    private Integer groupType;

    /**
     * 
     */
    private Integer groupStatus;

    /**
     *
     */
    @TableField(exist = false)
    private List<MBStore> storeList;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}